package org.raftkv.raft.core;

import java.util.Objects;

public class Connem {

    long from;

    long to;

    public Connem() {
    }

    public Connem(long from, long to) {
        this.from = from;
        this.to = to;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Connem connem = (Connem) o;
        return from == connem.from && to == connem.to;
    }

    @Override
    public int hashCode() {
        return Objects.hash(from, to);
    }

}
